Part Number Hot Search : 
MAX14 2N700 MTVSS12 BPC3504 D1213 BAS16LD MTVSS12 10032
Product Description
Full Text Search
 

To Download AN470 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  application note AN470/0392 the l297 stepper motor controller the l297 integrates all the control circuitry required to control bipolar and unipolar stepper motors. used with a dual bridge driver such as the l298n forms a complete microprocessor-to-bipolar stepper motor interface. unipolar stepper motor can be driven with an l297 plus a quad darlington array. this note de- scribes the operation of the circuit and shows how it is used. the l297 stepper motor controller is primarily in- tendedfor use with an l298n or l293e bridge driver in stepper motor driving applications. it receives control signals from the system's control- ler, usually a microcomputer chip, and provides all the necessary drive signals for the power stage. ad- ditionally, it includes two pwm chopper circuits tore- gulate the current in the motor windings. with a suitable power actuator the l297 drives two phase bipolar permanent magnet motors, four pha- se unipolar permanentmagnet motorsand four pha- se variable reluctance motors. moreover, it handles normal, wave drive and half step drive modes. (this is all explained in the section ostepper motor ba- sicso). two versions of the device are available : the regular l297 and a special version called l297a. the l297a incorporates a step pulse doubler and is de- signed specifically for floppy-disk head positioning applications. advantages the l297 + driver combination has many advanta- ges : very few components are required (so assem- bly costs are low, reliability high and little space required), software development is simplified and the burden on the micro is reduced. further, the choice of a two-chip approach gives a high degree of flexibility-the l298ncan be used on its own for dc motors and the l297 can be used with any power stage, including discrete power devices (it provides 20ma drive for this purpose). figure 1 : in this typical configuration an l297 stepper motor controller and l298 dual bridge driver com- bine to form a complete microprocessor to bipolar stepper motor interface. 1/18
for bipolar motors with winding currents up to 2a the l297 should be used with the l298n ; for winding currents up to 1a the l293e is recommended (the l293 will also be useful if the chopper isn't needed). higher currents are obtained with power transistors or darlingtons and for unipolar motors a darlington array such as the uln2075b is suggested. the block diagram, figure 1, shows a typical system. applications of the l297 can be found almost eve- rywhere ... printers (carriage position,daisy position, paper feed, ribbon feed), typewriters, plotters, nu- merically controlled machines, robots, floppy disk drives, electronic sewing machines, cash registers, photocopiers, telex machines, electronic carbure- tos, telecopiers, photographic equipment, paper tape readers, optical character recognisers, electric valves and so on. the l297 is made with sgs' analog/digital compa- tible i 2 l technology(like zodiac) and is assembled in a 20-pin plastic dip. a 5v supply is used and all signal lines are ttl/cmos compatible or open col- lector transistors. high density is one of the key fea- tures of the technology so the l297 die is very compact. the l298n and l293e since the l297 is normally used with an l298n or l293e bridge driver a brief review of these devices will make the rest of this note easier to follow. the l298n and l293e contain two bridge driver stages,each controlled by two ttl-level logicinputs and a ttl-level enable input. in addition, the emitter connectionsof the lower transistors are brought out to external terminals to allow the connection of cur- rent sensing resistors (figure 2). for the l298n sgs' innovative ion-implanted high voltage/high current technology is used, allowing it to handle effective powers up to 160w (46v supply, 2a per bridge). a separate 5v logic supply input is provided to reduce dissipation and to allow direct connection to the l297 or other control logic. in this note the pins of the l298n are labelled with the pin names of the corresponding l297 terminals to avoid unnecessary confusion. the l298n is supplied in a 15-lead multiwatt plastic power package. it's smaller brother,the functionally identical l293e, is packaged in a powerdip a cop- per frame dip that uses the four center pins to con- duct heat to the circuit board copper. figure 2 : the l298n contains two bridge drivers (four push pull stages) each controlled by two logic inputs and an enable input. external emitter connections are provided for current sense resistors. the l293e has external connections for all four emitters. application note 2/18
stepper motor basics there are two basic types of stepper motor in com- mon use : permanentmagnet and variable reluctan- ce. permanent magnet motors are divided into bipolar and unipolar types. bipolar motors simplified to the bare essentials, a bipolar perma- nent magnet motor consists of a rotating permanent magnet surroundedby stator poles carrying the win- dings (figure 3). bidirectional drive current is used and the motor is stepped by switching the windings in sequence. for a motor ofthis type there are three possible drive sequences. the first is to energize the windings in the sequence ab/cd/ba/dc (ba means that the winding ab is energizedbut in theopposite sense). this sequence is known as oone phase ono full step or wave drive mode. only one phase is energized at any given mo- ment (figure 4a). the second possibility is to energize both phases to- gether, so that the rotor always aligns itself between two pole positions. called otwo-phase-ono full step, this mode is the normal drive sequence for a bipolar motor and gives the highest torque (figure 4b). the third option is to energize one phase, then two, then one, etc., so that the motor moves in half step increments. this sequence, known as half step mode, halves the effective step angle of the motor but gives a less regular torque (figure 4c). for rotation in the opposite direction (counter-clock- wise) the same three sequences are used, except of course that the order is reserved. as shown in these diagrams the motor would have a step angle of 90 . real motors have multiple poles to reduce the step angle to a few degrees but the numberof windings and thedrive sequencesare un- changed. a typical bipolar stepper motor is shown in figure 5. unipolar motors a unipolar permanent magnet motor is identical to the bipolar machine described above except that bi- filar windings are used to reverse the stator flux, ra- ther than bidirectional drive (figure 6). this motor is driven in exactly the same way as a bi- polar motor except that the bridge drivers are repla- ced by simple unipolar stages - four darlingtons or a quad darlington array. clearly, unipolar motors are more expensive because thay have twice as many windings. moreover, unipolar motors give less torque for a given motor size because the windings are made with thinner wire. in the past unipolar mo- tors were attractive to designers because they sim- plify the driver stage. now that monolithic push pull drivers like the l298n are available bipolar motors are becoming more popular. all permanent magnet motors suffer from the coun- ter emf generated by the rotor, which limits the ro- tation speed. when very high slewing speeds are necessary a variable reluctance motor is used. figure 3 : greatly simplified, a bipolar permanent magnet stepper motor consist of a rota- ring magnet surrounded by stator poles as shown. application note 3/18
figure 4 : the three drive sequences for a two phase bipolar stepper motor. clockwise rotation is shown. figure 4a : wave drive (one phase on). figure 4b : two phase on drive. figure 4c : half step drive. application note 4/18
variable reluctance motors a variable reluctance motor has a non-magnetized soft iron rotor with fewer poles than the stator (fig- ure 7). unipolar drive is used and the motor is step- ped by energizing stator pole pairs to align the rotor with the pole pieces of the energized winding. once again three different phase sequencescan be used. the wave drive sequence is a/c/b/d ; two- phase-on is ac/cb/bd/da and the half step se- quence is a/ac/c/bc/b/bd/d/da. note that the step angle for the motor shown above is 15 , not 45 . as before, pratical motors normally employ multiple poles to give a much smaller step angle. this does not, however, affect the principle of operation of the drive sequences. generating the phase sequences the heart of the l297 block diagram, figure 8, is a block called the translator which generates suitable phase sequences for half step, one-phase-on full step and two-phase-on full step operation. this block is controlled by two mode inputs direction (cw/ ccw) and half/ full and a step clock which advances the translator from one step to the next. four outputs are provided by the translator for sub- sequent processing by the output logic block which implements the inhibit and chopper functions. internally the translator consists of a 3-bit counter plus some combinational logic which generates a basic eight-step gray code sequence as shown in figure 9. all three drive sequencescan be generated easily from this master sequence. this state se- quence corresponds directly to half step mode, se- lected by a high level on the half/ full input. figure 6 : a unipolar pm motor uses bifilar win- dings to reverse the flux in each phase. figure 7 : a variable reluctance motor has a soft iron rotor with fewer poles than the sta- tor. the step angle is 15 for this motor. figure 5 : a real motor. multiple poles are norma- lly employed to reduce the step angle to a practical value. the principle of opera- tion and drive sequences remain the same. application note 5/18
the output waveforms for this sequence are shown in figure 10. note that two other signals, inh1 and inh2 are ge- nerated in this sequence. the purpose of these si- gnals is explained a little further on. the full step modes are both obtained by skipping alternate states in the eight-step sequence. what happensis that the step clock bypassesthe first sta- ge of the 3-bit counter in the translator. the least si- gnificant bit ot this counter is not affected therefore the sequencegenerateddependson the state of the translator when full step mode is selected (the half/ full input brought low). if full step mode is selected when the translator is at any odd-numbered state we get the two-phase-on full step sequence shown in figure 11. by contrast, one-phase-on full step mode is obtai- ned by selecting full step mode when the translator is at an even-numbered state (figure 12). figure 8 : the l297 contains translator (phase sequence generator), a dual pwm chopper and output control logic. figure 9 : the eight step master sequence of the translator. this corresponds to half step mode. clockwise rotation is indicated. application note 6/18
figure 10 : the output waveforms corresponding to the half step sequence. the chopper action in not shown. figure 11 : state sequence and output waveforms for the two phase on sequence. inh1 and inh2 remain high throughout. application note 7/18
figure 12 : state sequence and output waveforms for wave drive (one phase on). inh1 and inh2 in half step and one-phase-on full step modes two other signals are generated: inh1 and inh2. these are inhibit signals which are coupled to the l298n's enable inputs and serve to speed the current decay when a winding is switched off. since both windings are energized continuously in two-phase-on full step mode no winding is ever swit- ched off and these signals are not generated. to see what these signals do let's look at one half of the l298n connected to the first phase of a two- phase bipolar motor (figure 13). remember that the l298n's a and b inputs determine which transistor in each push pull pair will be on. inh1, on the other hand, turns off all four transistors. assume that a is high, b low and current flowing through q1, q4 and the motor winding. if a is now brought low the current would recirculate through d2, q4 and r s , giving a slow decay and increased dissipationin r s . if, on a other hand, a is brought low and inh1 is activated, all four transistors are turned off. the current recirculates in this case from ground to v s via d2 and d3, giving a faster decay thus al- lowing faster operation of the motor. also, since the recirculation current does not flow through r s , aless expensive resistor can be used. exactly the same thing happens with the second winding, the other half of the l298 and the signals c, d and inh2. the inh1 and inh2 signals are generated by or functions : a + b = inh1 c + d = inh2 however, the output logic is more complex because inhibit lines are also used by the chopper, as we will see further on. other signals two other signals are connected to the translator block : the reset input and the home output reset is an asynchronous reset input which resto- res the translator block to the home position (state 1, abcd = 0101). the home output (open collec- tor) signals this condition and is intended to the an- ded with the output of a mechanical home position sensor. finally, there is an enable input connected to the output logic. a low level on this input brings inh1, inh2, a, b, c and d low. this input is useful to di- sable the motor driver when the system is initialized. load current regulation some form of load current control is essential to ob- tain good speed and torque characteristics. there are several ways in which this can be done swit- ching the supply between two voltages, pulse rate modulation chopping or pulse width modulation chopping. application note 8/18
figure 13 : when a winding is switched off the inhibit input is activated to speed current decay. if this were not done the current would recirculate through d2 and q4 in this example. dissipation in r s is also reduced. the l297 provides load current control in the form of two pwm choppers, one for each phase of a bi- polar motor or one for each pair of windings for a uni- polar motor. (in a unipolar motor the a and b windings are never energized together so thay can share a chopper ; the same applies to c and d). each chopper consists of a comparator, a flip flop and an external sensing resistor. a common on chip oscillator supplies pulses at the chopperrate to both choppers. in each chopper(figure 14) the flip flop is set by each pulse from the oscillator, enabling the output and al- lowing the load current to increase. as it increases the voltage across the sensing resistor increases, and when this voltage reaches v ref the flip flop is re- set, disabling the output until the next oscillator pul- se arrives. the output of this circuit (the flip flop's q output) is therefore a constant rate pwm signal. note that v ref determines the peak load current. figure 14 : each chopper circuit consists of a comparator, flip flop and external sense resistor. a common oscillator clocks both circuits. application note 9/18
phase chopping and inhibit chopping the chopper can act on either the phase lines (abcd) or on the inhibit lines inh1 and inh2. an in- put named control decides which. inhibit chop- ping is used for unipolar motors but you can choose between phasechopping and inhibit choppingfor bi- polar motors. the reasons for this choice are best explained with another example. first let's examine the situation when the phase li- nes are chopped. as before, we are driving a two phase bipolar motor and a is high, b low (figure 15). current therefore flows through q1, winding, q4 and r s . when the voltage across r s reaches v ref the chopper brings b high to switch off the winding. the energy stored in the winding is dissipated by current recirculating through q1 and d3. current de- cay throughthis path is rather slow becausethe volt- age on the winding is low (v cesat q1 +v d3 ) (figure 16). why is b pulled high, why push a low ? the reason is to avoid the current decaying through r s . since the current recirculates in the upper half of the brid- ge, current only flows in the sensing resistor when the winding is driven. less power is therefore dissi- pated in r s and we can get away with a cheaper re- sistor. this explain why phase chopping is not suitable for unipolar motors : when the a winding is driven the chopperacts on the b winding. clearly, this is no use at all for a variable reluctance motor and would be slow and inefficient for a bifilar wound permanent magnet motor. the alternative is to tie the control input to ground so that the chopper acts on inh1 and inh2. looking at the same example, a is high and b low. q1 and q4 are therefore conducting and current flows through q1, the winding, q4 and r s , (fig- ure 17). figure 15 : phase chopping. in this example the current x is interrupted by activating b, giving the recir- culation path y. the alternative, de-activating a, would give the recirculation path z, increasing dissipation in r s . application note 10/18
figure 16 : phase chopping waveforms. the example shows ab winding energized with a positive with respect to b. control is high. figure 17 : inhibit chopping. the drive current (q1, winding, q4) in this case is interrupted by activating inh1. the decay path through d2 and d3 is faster than the path y of figure 15. application note 11/18
in this case when the voltage accross r s reaches v ref the chopperflip flop is reset and inh1 activated (brought low). inh1, remember, turns off all four transistors therefore the current recirculates from ground, through d2, the winding and d3 to v s . di- scharged across the supply, which can be up to 46v, the current decays very rapidly (figure 18). the usefulness of this second faster decay option is fairly obvious ; it allows fast operation with bipolar motors and it is the only choice for unipolar motors. but why do we offer the slower alternative, phase chopping ? the answer is that we might be obliged to use a low chopper rate with a motor that does not store much energy in the windings. if the decay is very fast the average motor current may be too low to give an useful torque. low chopper rates may, for example, be imposed if there is a larger motor in the same sy- stem. to avoid switching noise on the ground plane all drivers should be synchronized and the chopper rate is therefore determined by the largest motor in the system. multiple l297s are synchronized easily using the sync pin. this pin is the squarewave output of the on-chip oscillator and the clock input for the chop- pers. the first l297 is fitted with the oscillator com- ponents and outputs a sqarewave signal on this pin (figure 19). subsequentl297sdo not needthe oscil- lator components and use sync as a clock input. an external clock may also be injected at this termi- nal if an l297 must be synchronized to other system components. the l297a the l297a is a special version of the l297 develo- ped originally for head positioning in floppy disk dri- ves. it can, however, be used in other applications. compared to the standard l297 the difference are the addition of a pulse doubler on the step clock in- put and the availability of the output of the direction flip flop (block diagram, figure 20). to add these fun- ctions while keeping the low-cost 20-pin package the control and sync pins are not available on this version (they are note needed anyway). the chopper acts on the abcd phase lines. the pulse doublergenerates a ghost pulse internal- ly for each input clock pulse. consequentlythe tran- slator moves two steps for each input pulse. an external rc network sets the delay time between the input pulse and ghost pulse and should be cho- sen so that the ghost pulses fall roughly halfway between input pulses, allowing time for the motor to step. this feature is used to improve positioning accura- cy. since the angular position error of a stepper mo- tor is noncumulative (it cancels out to zero every four steps in a four step sequence motor) accuracy is im- proved by stepping two of four steps at a time. figure 18 : inhibit chopper waveforms. winding ab is energized and control is low. figure 19 : the chopper oscillator of multiple l297s are synchronized by connecting the sync inputs together. application note 12/18
figure 20 : the l297a, includes a clock pulse doubler and provides an output from the direction flip flop (dir mem). application hints bipolar motors can be driven with an l297, an l298n or l293e bridge driver and very few external components (figure 21). together these two chips form a complete microprocessor-to-stepper motor interface. with an l298n this configuration drives motors with winding currents up to 2a ; for motors up to 1a per winding and l293e is used. if the pwm choppers are not required an l293 could also be used (it doesn't have the external emitter connec- tions for sensing resistors) but the l297 is underu- tilized. if very high powers are required the bridge driver is replaced by an equivalent circuit made with discrete transistors. for currents to 3.5a two l298n's with paralleled outputs may be used. for unipolar motors the best choice is a quad dar- lington array. the l702b can be used if the chop- pers are not required but an uln2075b is preferred. this quad darlington has external emitter connec- tions which are connected to sensing resistors (fig- ure 22). since the chopper acts on the inhibit lines, four and gates must be added in this application. also shown in the schematic are the protection dio- des. in all applications where the choppers are not used it is important to remember that the sense inputs must be grounded and v ref connected either to v s or any potential between v s and ground. the chopper oscillator frequency is determined by the rc network on pin 16. the frequency is roughly 1/0.7 rc and r must be more than 10 k w . when the l297a's pulse doubler is used, the delay time is determined by the network r d c d and is approxima- tely 0.75 r d c d .r d should be in the range 3 k w to 100 k w (figure 23). application note 13/18
figure 21 : this typical application shows an l297 and l298n driving a bipolar stepper motor with pha- se currents up to 2a. r s1 r s2 =0.5 w d1 to d8 = 2 fast diodes vf 1.2 @ i = 2 a trr 200 ns application note 14/18
figure 22 : for unipolar motors a quad darlington array is coupled to the l297. inhibit chopping is used so the four and gates must be added. figure 23 : the clock pulse doubler inserts a ghost pulse t o seconds after the input clock pulse. r d c d is closen to give a delay of approximately half the input clock period. application note 15/18
pin functions - l297 n name function 1 sync output of the on-chip chopper oscillator. the sync connections the sync connections of all l297s to be synchronized are connected together and the oscillator components are omitted on all but one. if an external clock source is used it is injected at this terminal. 2 gnd ground connection. 3 home open collector output that indicates when the l297 is in its initial state (abcd = 0101). the transistor is open when this signal is active. 4 a motor phase a drive signal for power stage. 5 inh1 active low inhibit control for driver stage of a and b phases. when a bipolar bridge is used this signal can be used to ensure fast decay of load current when a winding is de-energized. also used by chopper to regulate load current if control input is low. 6 b motor phase b drive signal for power stage. 7 c motor phase c drive signal for power stage. 8 inh2 active low inhibit control for drive stages of c and d phases. same functions as inh1. 9 d motor phase d drive signal for power stage. 10 enable chip enable input. when low (inactive) inh1, inh2, a, b, c and d are brought low. 11 control control input that defines action of chopper. when low chopper acts on inh1 and inh2; when high chopper acts on phase lines abcd. 12 v s 5v supply input. 13 sens 2 input for load current sense voltage from power stages of phases c and d. 14 sens 1 input for load current sense voltage from power stages of phases a and b. 15 v ref reference voltage for chopper circuit. a voltage applied to this pin determines the peak load current. 16 osc an rc network (r to v cc , c to ground) connected to this terminal determines the chopper rate. this terminal is connected to ground on all but one device in synchronized multi - l297 configurations. f @ 1/0.69 rc 17 cw/ccw clockwise/counterclockwise direction control input. physical direction of motor rotation also depends on connection of windings. synchronized internally therefore direction can be changed at any time. 18 clock step clock. an active low pulse on this input advances the motor one increment. the step occurs on the rising edge of this signal. 19 half/full half/full step select input. when high selects half step operation, when low selects full step operation. one-phase-on full step mode is obtained by selecting full when the l297's translator is at an even-numbered state. two-phase-on full step mode is set by selecting full when the translator is at an odd numbered position. (the home position is designate state 1). 20 reset reset input. an active low pulse on this input restores the translator to the home position (state 1, abcd = 0101). pin functions - l297a (pin function of the l297a are identical to those of the,l297 except for pins 1 and 11) 1 doubler an rc network connected to this pin determines the delay between an input clock pulse and the corresponding ghost pulse. 11 dir-mem direction memory. inverted output of the direction flip flop. open collector output. application note 16/18
figure 24 : pin connections. application note 17/18
information furnished is believed to be accurate and reliable. however, sgs-thomson microelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of sgs-thomson microelectronics. specifica- tions mentioned in this publication are subject to change without notice. this publication supersedes and replaces all information pre- viously supplied. sgs-thomson microelectronics products are not authorized for use as critical components in life support devices or systems without express written approval of sgs-thomson microelectronics. ? 1995 sgs-thomson microelectronics - all rights reserved sgs-thomson microelectronics group of companies australia - brazil - france - germany - hong kong - italy - japan - korea - malaysia - malta - morocco - the netherlands - singapore - spain - sweden - switzerland - taiwan - thaliand - united kingdom - u.s.a. application note 18/18


▲Up To Search▲   

 
Price & Availability of AN470

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X